package com.vue3.blog.common.enums;

import lombok.Getter;

/**
 * @author Mr.小朱同学
 * @version 1.0.0
 * @date 2025/6/9 19:29
 * @description 统一响应结果枚举类
 */
@Getter
public enum ResultEnum {
    SUCCESS(200, "响应成功"),
    FAILED(500, "操作异常");

    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 提示信息
     */
    private final String message;

    ResultEnum(int statusCode, String message) {
        this.code = statusCode;
        this.message = message;
    }
}